<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/24 0024
 * Time: 15:38
 */
//https://blog.csdn.net/weixin_34015860/article/details/85955453


while(1) {
    while ($stdin = fread(STDIN, 65535)) {
        echo "child get main : " . $stdin;
//        sleep(2);
    }
}
while ($stdin = fread(STDIN, 65535)) {
    echo "child get main : " . $stdin;
    sleep(2);
}